package com.jiao.testdemo.pattern.chain;

/**
 * TODO(文件概要)
 *
 * <p> TODO(具体描述信息,可以不填)
 *
 * @author meetsocial
 * @version V1.0
 * @className: ConcreteHandlerA
 * @date 2024/11/15 10:31
 */
public class ConcreteHandlerA extends Handler {
    @Override
    public void handleRequest(String request) {
        if (request.equals("A")) {
            System.out.println("Handler A handling request A");
        } else if (nextHandler != null) {
            nextHandler.handleRequest(request);
        }
    }
}
